import http from '@/utils/http'

/**
 * @description 获取 Banner 模式列表
 * @returns
 */
export function fetchBannerModes() {
    return http({
        url: '/v1/banner/modes',
        method: 'get'
    })
}

/**
 * @description 创建 Banner
 * @param {Object} data - Banner 数据
 * @returns
 */
export function createBanner(data) {
    return http({
        url: '/v1/banner/create',
        method: 'post',
        data: data
    })
}

/**
 * @description 获取 Banner 列表
 * @param {*} params
 * @returns
 */
export function fetchBannerBasic(params) {
    return http({
        url: '/v1/banner/basic',
        method: 'get',
        params: params
    })
}

/**
 * @description 删除banner图
 * @param {*} params
 * @returns
 */
export function fetchBannerRemove(params) {
    return http({
        url: '/v1/banner/remove',
        method: 'post',
        data: params
    })
}
